package com.menhai.personmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.menhai.personmanagement.entity.Systype;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SystypeMapper extends BaseMapper<SystypeMapper> {

    @Update("update systype set systype = ${systype}")
    int updateType(@Param("systype") int systype);

    @Select("select * from systype")
    List<Systype> selectType();
}
